/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdBusinessScenarios;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 业务场景/系统业务对象 isfd_business_scenarios
 *
 * @author hxloongs
 * @date 2025-02-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdBusinessScenarios.class, reverseConvertGenerate = false)
public class IsfdBusinessScenariosBo extends BaseEntity {

    /**
     * 自增主键，唯一标识每一个记录
     */
    @NotNull(message = "自增主键，唯一标识每一个记录不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 父级别id
     */
    @NotNull(message = "父级别id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long parentId;

    /**
     * 顶层id
     */
    private Long topId;

    /**
     * 业务场景/系统名称，用于描述该业务场景的名称
     */
    @NotBlank(message = "业务场景/系统名称，用于描述该业务场景的名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 业务场景/系统描述
     */
    @NotBlank(message = "业务场景/系统描述不能为空", groups = {AddGroup.class, EditGroup.class})
    private String description;

    /**
     * 类型，0-业务场景，1-业务系统
     * @see com.comac.ins.isfd.constant.enums.IsfdBusinessScenariosTypeEnum
     */
    @NotNull(message = "业务类型，0-业务场景，1-业务系统，不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer type;
}
